package com.xjrsoft.module.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjrsoft.module.oa.entity.XjrOaMessage;
import com.xjrsoft.module.oa.vo.MessageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zwq
 * @since 2021-05-18
 */
public interface XjrOaMessageMapper extends BaseMapper<XjrOaMessage> {

    List<MessageVo> getMeassageList(@Param("userId") String userId,@Param("modules") List<Integer>  modules,@Param("limit")  Integer limit,@Param("status")  Integer status);

    List<MessageVo> getScheduleMeassageList(@Param("userId") String userId,@Param("module")  Integer module,@Param("limit")  Integer limit,@Param("status")  Integer status);

    Integer getMeassageUnreadCount(@Param("userId")  String userId,@Param("modules") List<Integer>  modules);

    Integer getScheduleMeassageUnreadCount(@Param("userId")  String userId,@Param("module")  Integer module);

}
